#ifndef UTHARRAY_H_
#define UTHARRAY_H_

#include "UTHValue.h"
#include <vector>
#include <boost/thread/mutex.hpp>

namespace phnq
{
	namespace uth
	{
		class UTHArray : public UTHValue
		{
			public:
				UTHArray();
				~UTHArray();
				void add(UTHValue *value);
				UTHValue *get(int index);
				int length();
				void serialize(stringbuf *sb);
			
			private:
			    boost::mutex writeMutex;
				vector<UTHValue*> values;
		};
	}
}

#endif //UTHARRAY_H_
